
package com.gibs.peixunapi.model;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.OneToOne;

@EqualsAndHashCode(callSuper = true)
@Entity
@Data
//@Table(name = "business")
public class Business extends BaseModel {	//企业

	private String name;     //名称

	private String shortName;     //简称

	@OneToOne(cascade = CascadeType.REFRESH)
	private User manager;     //管理员

	private String invoiceTitle;     //发票抬头

	private String taxpayerNumber;     //纳税人识别号

	private String bankName;     //开户银行

	private String bankAccount;     //银行账号

	private String invitedCode;     //邀请码

	private Integer sort;     //排序
}

